package com.jsoft.webservice;

import com.jsoft.dto.SectorDto;
import com.jsoft.service.SectorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.context.support.SpringBeanAutowiringSupport;

import javax.jws.WebParam;
import javax.jws.WebService;
import java.util.List;

/**
 * Date: 16.09.13
 * Time: 17:01
 */

@WebService
public class SectorWebServiceImpl extends SpringBeanAutowiringSupport implements SectorWebService {
    @Autowired
    private SectorService sectorService;

    @Override
    public List<SectorDto> getSectorListByUserId(@WebParam(name = "userId") Integer userId) {
        return sectorService.getSectorListByUserId(userId);
    }
}
